import { ApiProperty } from '@nestjs/swagger';

export class LoginUserDto {
  /** 用户名 */
  @ApiProperty({ description: '用户名', example: 'admin', required: true })
  username: string;
  /** 用户密码，以hash+盐存储，确保安全性 */
  @ApiProperty({
    description: '用户密码',
    example: '21232f297a57a5a743894a0e4a801fc3',
    required: true,
  })
  password: string;
}
